package com.ysalliance.getFan.organization.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysalliance.getFan.organization.Bean.ClassBean;
import com.ysalliance.getFan.organization.Bean.SearchVideoBean;
import com.ysalliance.getFan.organization.R;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class SearchClassAdapter extends BaseQuickAdapter<SearchVideoBean, BaseViewHolder> {

    public SearchClassAdapter(int layoutResId, @Nullable List<SearchVideoBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, SearchVideoBean item) {
        helper.setText(R.id.tv_class_inrto,   "《"+item.getName() + "》 " + item.getAria() );
        helper.setText(R.id.tv_auther,   item.getAuthor().getName() );
    }
}


